<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>v-ref</title>
  <style>html,body{height:100%;margin:0;}</style>
  <script src="../../tailwindcss-jit-cdn-ex.min.js"></script>
</head>

<body class="p-4">
  <div id="app" @vue:mounted="mounted">
    <span v-ref="mySpan">mySpan</span>
  </div>

  <script type="module">
    import { createApp } from '../../petite-vue.es.js';
    import vRef from './index.js';

    const app = createApp({
      mounted() {
        console.log( this.$refs );
      }
    })
    app.directive('ref', vRef)
    app.mount('#app');
  </script>
</body>
</html>